﻿using System.Globalization;

namespace Cos.Core.Model.Common
{
    public class Culture : DomainModelBase
    {
        private CultureInfo cultureInfo;
        
        // public int CultureId { get; set; }

        public bool IsDefaultCulture { get; set; }

        public string CultureCode { get; set; }

        public string CultureDesc { get; set; }

        public CultureInfo CultureInfo 
        { 
            get
            {
                if (this.cultureInfo == null)
                {
                    this.cultureInfo = new CultureInfo(this.CultureCode);
                }

                return this.cultureInfo;
            } 
        }
    }
}
